package com.amqr.movetest.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.amqr.movetest.R;

/**
 * User: LJM
 * Date&Time: 2017-05-21 & 14:32
 * Describe: Describe Text
 */
public class IndexActivity extends AppCompatActivity{

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_index);

        findViewById(R.id.mTvSimpleVp).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,SimpleVpActivity.class));
            }
        });

        findViewById(R.id.mTvBannerOne).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,BannerOneVpActivity.class));
            }
        });

        findViewById(R.id.mTvBannerTwo).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,BannerTwoVpActivity.class));
            }
        });

        findViewById(R.id.mTvBannerThree).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,VpMultNestingActivity.class));
            }
        });

        findViewById(R.id.mTvVpAndVp).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,VpAndVpActivity.class));
            }
        });


        findViewById(R.id.mTvFlow).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,VpMultNestingActivity2.class));
            }
        });

        findViewById(R.id.mTvClick).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(IndexActivity.this,ClickActivity.class));
            }
        });

    }
}
